package com.ch.base.enums;

/**
 * @author created by lbq
 * @date 2018年9月11日 上午11:11:55
 **/
public enum CodeEnum {

    SUCCESS("OK", "成功"),
    FAIL("ERROR", "系统异常"),
    SESSION_INVLID("SESSION_INVALID", "session失效"),
    SESSION_EXPIRED("SESSION_EXPIRED", "session过期"),
    SESSION_USER_TYPE_ERR("USER_TYPE_INVALID", "无效的用户类型"),
    USERID("ERROR", "userId is null"),
    SESSION_USER_OBTAIN_ERROR("USER_OBTAIN_ERROR", "获取登录用户信息异常"),
    FILE_UPLOAD_NULL("ERROR", "文件上传不能为空!"),
    FILE_FORMAT_ERROR("ERROR", "文件格式错误!"),
    FILE_NAME_FORMAT_ERROR("ERROR", "文件名格式错误!"),
    PA_ORDER_UPLOAD_FAIL("ERROR", "上传平安销售订单失败!"),
    PA_ORDER_NULL_ERROR("ERROR", "平安销售订单不能为空文件!"),
    PA_ORDER_DATA_NULL_ERROR("ERROR", "平安销售订单数据不能为空!"),
    PA_ORDER_TITLE_ERROR("ERROR", "平安销售订单标题格式错误!"),
    GD_ORDER_UPLOAD_FAIL("ERROR", "上传光大销售订单失败!"),
    GD_ORDER_NULL_ERROR("ERROR", "光大销售订单不能为空文件!"),
    GD_ORDER_DATA_NULL_ERROR("ERROR", "光大销售订单数据不能为空!"),
    GD_ORDER_TITLE_ERROR("ERROR", "光大销售订单标题格式错误!"),
    HTTP_SUCCESS_STATUS_CODE("200", "成功");

    private String code;
    private String msg;

    CodeEnum(String code, String msg) {

        this.code = code;
        this.msg = msg;
    }

    public String getCode() {

        return code;
    }

    public void setCode(String code) {

        this.code = code;
    }

    public String getMsg() {

        return msg;
    }

    public void setMsg(String msg) {

        this.msg = msg;
    }
}
